package com.project.bean;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * 供应商
 */
@Data
@ApiModel(value = "供应商实体")
@TableName("t_supplier")
public class    SupplierBean {
    @ApiModelProperty(hidden = true)
    @TableId(value = "pk_supplierId",type = IdType.AUTO)
    private Integer id;
    @ApiModelProperty(value = "供应商名称")
    @TableField("s_name")
    private String name;//供应商名称
    @ApiModelProperty(value = "负责人")
    @TableField("s_head")
    private String head;//负责人
    @ApiModelProperty(value = "负责人电话")
    @TableField("s_phone")
    private String phone;//负责人电话
    @ApiModelProperty(value = "供应商地址")
    @TableField("s_address")
    private String address;//供应商地址
    @ApiModelProperty(value = "范围")
    @TableField("s_scope")
    private String scope;//范围

    public SupplierBean() {
    }

    public SupplierBean(String name, String head, String phone, String address, String scope) {
        this.name = name;
        this.head = head;
        this.phone = phone;
        this.address = address;
        this.scope = scope;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getHead() {
        return head;
    }

    public void setHead(String head) {
        this.head = head;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getScope() {
        return scope;
    }

    public void setScope(String scope) {
        this.scope = scope;
    }

    @Override
    public String toString() {
        return "SupplierBean{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", head='" + head + '\'' +
                ", phone='" + phone + '\'' +
                ", address='" + address + '\'' +
                ", scope='" + scope + '\'' +
                '}';
    }
}
